package com.fadadianqi.search;

import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

public class IndexObjectBufferPool {

    private static final Map<String, Object> MAP = new ConcurrentHashMap<String, Object>();

    public static final void add(Object obj) {
        MAP.put(UUID.randomUUID().toString(), obj);
    }

    public static final Map<String, Object> getBuffer() {
        return MAP;
    }
}
